From a7e96675bd29dda18436d70838ee49a399869f11 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 20 Feb 2018 13:18:28 +0000 Subject: [PATCH] build: Use get_supported_arguments() Instead of checking each flag one by one, use the appropriate method of the Meson compiler object. --- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meson.build b/meson.build index b75a085370..aa6aaa8d19 100644 --- a/meson.build +++ b/meson.build @@ -262,12 +262,7 @@ else test_cflags = [] endif -common_cflags = [] -foreach cflag: test_cflags - if cc.has_argument(cflag) - common_cflags += [ cflag ] - endif -endforeach +common_cflags = cc.get_supported_arguments(test_cflags) # Symbol visibility if get_option('default_library') != 'static' -- 2.30.2